﻿<%@ Page Title="Employee Entry" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="EmployeeEntry.aspx.cs" Inherits="Employee_EmployeeEntry" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="AjaxToolKit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
    <title>Employee Profile</title>
    <script src="../include/js/form.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="bodyContentTop" Runat="Server">
<h1>
        Employee Profile</h1>
    <h3>
        Setting up Employee profile.</h3>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="bodyContent" Runat="Server">
<div class="elements_inner_wrapper">
        <div id="contentBody">
            <div class="section">
                <div class="seperator">
                </div>
                <fieldset class="formouter">
                    <table cellpadding="3" cellspacing="3" width="100%">
                        <tr>
                            <td colspan="2">
                                <div class="row_curved" id="divSchoolList" runat="server" title="Example:UCSM, MIT, YTU">
                                    <label for="<%=ddlSchoolList.ClientID%>" class="mand_red">
                                        <asp:Label runat="server" Text="Selected School Name" ID="Label2" /></label>
                                    <div class="field">
                                        <span class="indicator">
                                            <asp:DropDownList AutoPostBack="True" runat="server" ID="ddlSchoolList" OnSelectedIndexChanged="ddlSchoolList_SelectedIndexChanged"
                                                DataSourceID="ObjectDataSource1" DataTextField="ListText" DataValueField="ListValue" />
                                            <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="SIS.ENT.Listing"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.ListingManager" UpdateMethod="Save">
                                                <SelectParameters>
                                                    <asp:Parameter DefaultValue="1" Name="ListType" Type="Int32" />
                                                </SelectParameters>
                                            </asp:ObjectDataSource>
                                            &nbsp;&nbsp;
                                            <asp:Button runat="server" ID="btnViewEmployeeList" Text="Show" OnClick="btnViewEmployeeList_Click" />
                                            &nbsp;&nbsp;
                                            <asp:Button runat="server" ID="btnAddNewEmployee" Text="New" OnClick="btnAddNewEmployee_Click" />
                                        </span>
                                    </div>
                                    <div class="clear">
                                    </div>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="2" valign="top">
                                <div class="row_curved" id="div5" runat="server">
                                    <asp:Label runat="server" ID="lblTopMessage" Text="" Font-Bold="true" Font-Size="Large"
                                        ForeColor="Red"></asp:Label>
                                    <asp:ValidationSummary ID="vsEmployeeProfile" runat="server" ValidationGroup="EmployeeProfile"
                                        ShowSummary="True" HeaderText="Please complete all highlighted fields of the form. Thank you."
                                        CssClass="errorSummary" />
                                    <div id="Div1" runat="server" visible="false">
                                        SchoolKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblSchoolKey" /><br />
                                        lblUserAccountKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAccountKey" /><br />
                                        lblUserAuthCode:<asp:Label Visible="true" runat="server" Text="-1" ID="lblUserAuthCode" /><br />
                                        lblEmployeeProfileKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeProfileKey" /><br />
                                        lblEmployeeContactKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeContactKey" /><br />
                                        lblEmployeeAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeRAddressKey" /><br />
                                        lblEmployeeAddressKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeePAddressKey" /><br />
                                        lblEmployeeJobExperienceKey:<asp:Label Visible="true" runat="server" Text="-1" ID="lblEmployeeJobExperienceKey" /><br />
                                        lblEmployeeJobDesignationKey:<asp:Label Visible="false" runat="server" Text="-1" ID="lblJobDesignationKey" /><br />
                                        lblEmployeeSkillKey:<asp:Label Visible="false" runat="server" Text="-1" ID="lblSkillKey" /><br />
                                        lblEmployeeQualifactionKey:<asp:Label Visible="false" runat="server" Text="-1" ID="lblQualificationKey" /><br />
                                        lblEmployeeSalaryKey:<asp:Label Visible="false" runat="server" Text="-1" ID="lblSalaryKey" />
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>
                    <AjaxToolKit:TabContainer ID="tbcEntry" runat="server" Visible="true">
                        <AjaxToolKit:TabPanel ID="tbpInfo" runat="server" HeaderText="Information" CssClass="menuHeader"
                            Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="lblInfoHeader" CssClass="menuHeader" runat="server">Information</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <div class="row_curved" id="divEmployeePhoto" visible="false" runat="server">
                                                <label for="<%=imgCurrentEmployeePhoto.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Photo" ID="Label48" /></label>
                                                <span class="indicator">
                                                    <asp:HyperLink ID="hplCurrentEmployeePhoto" Target="_blank" runat="server" ToolTip="Click to View Original">
                                                        <asp:Image runat="server" ID="imgCurrentEmployeePhoto" />
                                                    </asp:HyperLink>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divFirstName" runat="server">
                                                <label for="<%=txtFirstName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="First Name" ID="lblFirstName" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="270px" ID="txtFirstName" MaxLength="50" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvFirstName" ValidationGroup="EmployeeProfile" ControlToValidate="txtFirstName"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divLastName" runat="server">
                                                <label for="<%=txtLastName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Last Name (SurName)" ID="lblLastName" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="270px" ID="txtLastName" MaxLength="255" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvLastName" ValidationGroup="EmployeeProfile" ControlToValidate="txtLastName"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divOtherName" runat="server">
                                                <label for="<%=txtOtherName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Name" ID="lblOtherName" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtOtherName" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div3" runat="server">
                                                <label for="<%=txtJoinDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Sign In Date" ID="Label10" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtJoinDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="imgbtnJoinDate" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="cexJoinDate" runat="server" TargetControlID="txtJoinDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="imgbtnJoinDate" PopupPosition="TopLeft" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div18" runat="server">
                                                <label for="<%=ddlGender.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Gender" ID="Label24" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlGender" Height="22px" Width="130px">
                                                        <asp:ListItem Text="Female" Value="F"></asp:ListItem>
                                                        <asp:ListItem Text="Male" Value="M"></asp:ListItem>
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divDOB" runat="server">
                                                <label for="<%=ddlDOBYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="DOB" ID="Label1" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlDOBDay">
                                                        <asp:ListItem Text="dd" Value="-1"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:DropDownList runat="server" ID="ddlDOBMonth">
                                                        <asp:ListItem Text="mm" Value="-1"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:DropDownList runat="server" ID="ddlDOBYear">
                                                        <asp:ListItem Text="yy" Value="-1"></asp:ListItem>
                                                    </asp:DropDownList>
                                                    <asp:CustomValidator ID="csvEmployeeDOB" ValidationGroup="EmployeeProfile" OnServerValidate="EmployeeDOB_ServerSideValidation"
                                                        ControlToValidate="ddlDOBYear" runat="server" CssClass="validationErrorControl" 
                                                        Display="Dynamic">*</asp:CustomValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div2" runat="server">
                                                <label for="<%=txtPlaceOfBirth.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Place Of Birth" ID="Label4" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtPlaceOfBirth" Width="270px" runat="server" TextMode="MultiLine" Rows="3" />                                                    
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNRICNumber" runat="server">
                                                <label for="<%=txtNRICNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="NRIC Number" ID="lblNRICNumber" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtNRICNumber" Width="270px" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvNRICNumber" ValidationGroup="EmployeeProfile" ControlToValidate="txtNRICNumber"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            
                                        </td>
                                        <td valign="bottom">                                            
                                            <div class="row_curved" id="divMobileNumber" runat="server">
                                                <label for="<%=txtMobileNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Mobile" ID="lblMobileNumber" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtMobileNumber" MaxLength="50" runat="server" />
                                                    <asp:CustomValidator ID="csvEmployeeContactNumbers" OnServerValidate="EmployeeContactNumbers_ServerSideValidate"
                                                        ValidationGroup="EmployeeProfile" ControlToValidate="txtMobileNumber" runat="server"
                                                        CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divHomePhoneNumber" runat="server">
                                                <label for="<%=txtHomePhoneNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Home Phone" ID="lblHomePhoneNumber" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtHomePhoneNumber" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divOtherContactNumber" runat="server">
                                                <label for="<%=txtOtherContactNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Other Contact" ID="lblOtherContactNumber" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtOtherContactNumber" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div49" runat="server">
                                                <label for="<%=txtOfficeNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Office Phone" ID="Label25" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtOfficeNumber" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div50" runat="server">
                                                <label for="<%=txtFaxNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Fax No" ID="Label26" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtFaxNumber" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divEmailAddress" runat="server" title="Example:example@domain.com">
                                                <label for="<%=txtEmailAddress.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Email Address(es)" ID="lblEmailAddressCaption" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="240px" ID="txtEmailAddress" MaxLength="255" runat="server" />
                                                    <asp:RegularExpressionValidator ID="revEmailAddress" ValidationGroup="EmployeeProfile"
                                                        ControlToValidate="txtEmailAddress" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="<br />Invalid email address format." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divWebsiteUrl" runat="server" title="Example:http://www.example.com">
                                                <label for="<%=txtWebsiteUrl.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Website URL" ID="lblWebsiteUrl" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="240px" Text="" ID="txtWebsiteUrl" MaxLength="255" runat="server"></asp:TextBox>
                                                        <asp:RegularExpressionValidator ID="revWebsiteUrl" ValidationGroup="StudentProfile"
                                                            ControlToValidate="txtWebsiteUrl" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid HTTP URL format." Text="" ValidationExpression="http(s)?://([\w-]+\.)+[\w-]+(/[\w- ./?%&amp;=]*)?"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbcOtherDetails" runat="server" HeaderText="Information"
                            CssClass="menuHeader" Visible="true">
                            <HeaderTemplate>
                                <asp:Label ID="Label49" CssClass="menuHeader" runat="server">Other Details</asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table>
                                    <tr>
                                        <td valign="top">
                                            <div class="row_curved" id="divDrivingLicenceType" runat="server">
                                                <label for="<%=ddlDrivingLicenceType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Driving Licence Type" ID="lblDrivingLicenceType"
                                                        Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlDrivingLicenceType" Height="22px" Width="130px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divDrivingLicenceNumber" runat="server">
                                                <label for="<%=txtDrivingLicenceNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Driving Licence No." ID="lblDrivingLicenceNumber"
                                                        Width="140px" /></label><span class="indicator">
                                                            <asp:TextBox Width="120px" ID="txtDrivingLicenceNumber" MaxLength="50" runat="server" />
                                                        </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divTravelDocType" runat="server">
                                                <label for="<%=ddlTravelDocType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Travel Doc Type" ID="lblTravelDocType" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlTravelDocType" Height="22px" Width="130px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divTravelDocNumber" runat="server">
                                                <label for="<%=txtTravelDocNumber.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Travel Doc Number" ID="lblTravelDocNumber" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="220px" ID="txtTravelDocNumber" MaxLength="50" runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divBloodGroup" runat="server">
                                                <label for="<%=ddlBloodGroup.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Blood Group" ID="lblBloodGroup" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlBloodGroup" Height="25px" Width="136px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divMaritalStatus" runat="server">
                                                <label for="<%=ddlMaritalStatus.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Marital Status" ID="lblMaritalStatus" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlMaritalStatus" Height="25px" Width="136px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>

                                        </td>
                                        <td valign="top">
                                            
                                            <div class="row_curved" id="divRaceCode" runat="server">
                                                <label for="<%=ddlRaceCode.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Race" ID="lblRaceCode" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlRaceCode" Height="25px" Width="136px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divReligion" runat="server">
                                                <label for="<%=ddlReligion.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Religion" ID="lblReligion" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlReligion" Height="25px" Width="136px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divNationality" runat="server">
                                                <label for="<%=ddlNationality.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Nationality" ID="lblNationality" Width="140px" /></label>
                                                <span class="indicator">
                                                    <asp:DropDownList runat="server" ID="ddlNationality" Height="25px" Width="136px">
                                                    </asp:DropDownList>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divParentStatus" runat="server">
                                                <label for="<%=ddlParentStatus.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Parent Status" ID="lblParentStatus" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList runat="server" ID="ddlParentStatus">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div48" runat="server" style="width: 550px;">
                                                <label for="<%=txtHobby.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Hobby" ID="Label23" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="350px" ID="txtHobby" TextMode="MultiLine" Rows="5" MaxLength="500"
                                                        runat="server" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>                                             
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpInfo2" runat="server" HeaderText="Address Information"
                            CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblAddress" CssClass="menuHeader" runat="server" Text="Addresses"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <h3>
                                                Resident Address</h3>
                                            <div class="row_curved" id="divUnitNo" runat="server">
                                                <label for="<%=txtUnitNo.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="UnitNo" ID="lblUnitNo" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvUnitNo" ValidationGroup="EmployeeProfile" ControlToValidate="txtUnitNo"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divStreetName" runat="server">
                                                <label for="<%=txtStreetName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Street Name" ID="lblStreetName" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtStreetName" Width="270px" MaxLength="255" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvStreetName" ValidationGroup="EmployeeProfile" ControlToValidate="txtStreetName"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divCountry" runat="server">
                                                <label for="<%=ddlCountry.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Country" ID="lblCountry" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:UpdatePanel runat="server" ID="uplRCountry">
                                                        <ContentTemplate>
                                                            <asp:DropDownList Width="100px" runat="server" ID="ddlCountry" OnSelectedIndexChanged="ddlCountry_SelectedIndexChanged"
                                                                AutoPostBack="true">
                                                            </asp:DropDownList>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                    <asp:RequiredFieldValidator ID="rfvCountry" ValidationGroup="EmployeeProfile" ControlToValidate="ddlCountry"
                                                        InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                        ErrorMessage=""></asp:RequiredFieldValidator>
                                                </span>
                                                <label for="<%=ddlDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                    <asp:Label runat="server" Text="Province" ID="lblDistrict" /></label><span class="indicator">
                                                        <asp:UpdatePanel runat="server" ID="UpdatePanel3">
                                                            <ContentTemplate>
                                                                <asp:DropDownList Width="100px" runat="server" ID="ddlDistrict" OnSelectedIndexChanged="ddlDistrict_SelectedIndexChanged"
                                                                    AutoPostBack="true">
                                                                </asp:DropDownList>
                                                            </ContentTemplate>
                                                        </asp:UpdatePanel>
                                                        <asp:RequiredFieldValidator ID="rfvDistrict" ValidationGroup="EmployeeProfile" ControlToValidate="ddlDistrict"
                                                            InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                            ErrorMessage=""></asp:RequiredFieldValidator>
                                                    </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="divCity" runat="server">
                                                <label for="<%=ddlCity.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="City Name" ID="lblCity" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:UpdatePanel runat="server" ID="UpdatePanel4">
                                                        <ContentTemplate>
                                                            <asp:DropDownList Width="100px" runat="server" ID="ddlCity">
                                                            </asp:DropDownList>
                                                        </ContentTemplate>
                                                    </asp:UpdatePanel>
                                                    <asp:RequiredFieldValidator ID="rfvCity" ValidationGroup="EmployeeProfile" ControlToValidate="ddlCity"
                                                        InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                        ErrorMessage=""></asp:RequiredFieldValidator>
                                                </span>
                                                <label for="<%=txtPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                    <asp:Label runat="server" Text="Postal" ID="lblPostCode" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox Width="100px" ID="txtPostCode" MaxLength="50" runat="server" />
                                                    <asp:RequiredFieldValidator ID="rfvPostCode" ValidationGroup="EmployeeProfile" ControlToValidate="txtPostCode"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td valign="top">
                                            <h3>
                                                Permanent/Contact Address</h3>
                                            <asp:UpdatePanel runat="server" ID="uplPAddress" UpdateMode="Conditional">
                                                <ContentTemplate>
                                                    <asp:CheckBox runat="server" ID="chkPSameAsResident" Text="Same as Resident Address"
                                                        Checked="false" OnCheckedChanged="chkPSameAsResident_CheckedChanged" AutoPostBack="true" />
                                                    <div class="row_curved" id="divPUnitNo" runat="server">
                                                        <label for="<%=txtPUnitNo.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="UnitNo" ID="Label3" Width="120px" /></label>
                                                        <span class="indicator">
                                                            <asp:TextBox ID="txtPUnitNo" Width="120px" MaxLength="20" runat="server" />
                                                            <asp:RequiredFieldValidator ID="rfvPUnitNo" ValidationGroup="EmployeeProfile" ControlToValidate="txtPUnitNo"
                                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPStreetName" runat="server">
                                                        <label for="<%=txtPStreetName.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Street Name" ID="Label5" Width="120px" /></label>
                                                        <span class="indicator">
                                                            <asp:TextBox ID="txtPStreetName" Width="270px" MaxLength="255" runat="server" />
                                                            <asp:RequiredFieldValidator ID="rfvPStreetName" ValidationGroup="EmployeeProfile"
                                                                ControlToValidate="txtPStreetName" runat="server" CssClass="validationErrorControl"
                                                                Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPCountry" runat="server">
                                                        <label for="<%=ddlPCountry.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="Country" ID="Label6" Width="120px" /></label>
                                                        <span class="indicator">
                                                            <asp:UpdatePanel runat="server" ID="uplCountry">
                                                                <ContentTemplate>
                                                                    <asp:DropDownList Width="100px" runat="server" ID="ddlPCountry" AutoPostBack="true"
                                                                        OnSelectedIndexChanged="ddlPCountry_SelectedIndexChanged">
                                                                    </asp:DropDownList>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                            <asp:RequiredFieldValidator ID="rfvPCountry" ValidationGroup="EmployeeProfile" ControlToValidate="ddlPCountry"
                                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <label for="<%=ddlPDistrict.ClientID%>" style="width: 40px" class="mand_red">
                                                            <asp:Label runat="server" Text="Province" ID="Label7" /></label>
                                                        <span class="indicator">
                                                            <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                                                                <ContentTemplate>
                                                                    <asp:DropDownList Width="100px" runat="server" ID="ddlPDistrict" OnSelectedIndexChanged="ddlPDistrict_SelectedIndexChanged"
                                                                        AutoPostBack="true">
                                                                    </asp:DropDownList>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                            <asp:RequiredFieldValidator ID="rfvPDistrict" ValidationGroup="EmployeeProfile" ControlToValidate="ddlPDistrict"
                                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                    <div class="row_curved" id="divPCity" runat="server">
                                                        <label for="<%=ddlPCity.ClientID%>" class="mand_red">
                                                            <asp:Label runat="server" Text="City Name" ID="Label8" Width="120px" /></label>
                                                        <span class="indicator">
                                                            <asp:UpdatePanel runat="server" ID="UpdatePanel2">
                                                                <ContentTemplate>
                                                                    <asp:DropDownList Width="100px" runat="server" ID="ddlPCity">
                                                                    </asp:DropDownList>
                                                                </ContentTemplate>
                                                            </asp:UpdatePanel>
                                                            <asp:RequiredFieldValidator ID="rfvPCity" ValidationGroup="EmployeeProfile" ControlToValidate="ddlPCity"
                                                                InitialValue="-1" runat="server" CssClass="validationErrorControl" Display="Dynamic"
                                                                ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <label for="<%=txtPPostCode.ClientID%>" style="width: 40px" class="mand_red">
                                                            <asp:Label runat="server" Text="Postal" ID="Label9" /></label>
                                                        <span class="indicator">
                                                            <asp:TextBox Width="100px" ID="txtPPostCode" MaxLength="50" runat="server" />
                                                            <asp:RequiredFieldValidator ID="rfvPPostCode" ValidationGroup="EmployeeProfile" ControlToValidate="txtPPostCode"
                                                                runat="server" CssClass="validationErrorControl" Display="Dynamic" ErrorMessage=""></asp:RequiredFieldValidator>
                                                        </span>
                                                        <div class="clear">
                                                        </div>
                                                    </div>
                                                </ContentTemplate>
                                            </asp:UpdatePanel>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpInfo3" runat="server" HeaderText="Experience History"
                            CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblExperienceHistory" CssClass="menuHeader" runat="server" Text="Experience History"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table>
                                    <tr>
                                        <td>
                                            <div class="row_curved" id="div6" runat="server">
                                                <label for="<%=txtPreviousEmployer.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Previous Employer" ID="Label11" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtPreviousEmployer" runat="server" MaxLength="255" CssClass="inputBox_large"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div7" runat="server">
                                                <label for="<%=txtStartDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Start Date" ID="Label12" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtStartDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ibnDate" ImageUrl="~/images/Calendar.gif" AlternateText="Click to show calendar"
                                                        ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="cceDate" runat="server" TargetControlID="txtStartDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ibnDate" PopupPosition="TopLeft" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div8" runat="server">
                                                <label for="<%=txtEndDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="End Date" ID="Label13" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtEndDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ibtnCalendar2" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="CalendarExtender1" runat="server" TargetControlID="txtEndDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ibtnCalendar2" PopupPosition="TopLeft" />                                                    
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div id="DivCalendar" class="row_curved" runat="server" style="text-align:center;">
                                                <asp:CustomValidator ID="cvCalendar" ValidationGroup="JobExperience" OnServerValidate="JobExperienceEndDate_ServerSideValidation"
                                                    ErrorMessage="Experience Date Range not valid." ControlToValidate="txtEndDate"
                                                    runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator>
                                            </div>
                                            <div class="row_curved" id="div9" runat="server">
                                                <label for="<%=txtPosition.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Previous Position" ID="Label14" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtPosition" runat="server" MaxLength="255" CssClass="inputBox_medium"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div11" runat="server">
                                                <label for="<%=txtSalary.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Salary" ID="Label16" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSalary" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" ValidationGroup="EmployeeProfile"
                                                        ControlToValidate="txtSalary" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div4" runat="server">
                                                <label for="<%=txtRefereeName.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Referee Name" ID="Label19" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtRefereeName" runat="server" MaxLength="255" CssClass="inputBox_large"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div13" runat="server">
                                                <span class="indicator">
                                                    <asp:Button ID="btnAdd" runat="server" Text="Add New" OnClick="btnAdd_Click" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="div14" runat="server">
                                                <label for="<%=txtRefereeAddress.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Referee Address" ID="Label20" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtRefereeAddress" runat="server" MaxLength="255" CssClass="inputBox_large"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div16" runat="server">
                                                <label for="<%=txtRefereeEmail.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Referee Email" ID="Label21" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtRefereeEmail" runat="server" MaxLength="255" CssClass="inputBox_large"></asp:TextBox>
                                                    <asp:RegularExpressionValidator ID="RegularExpressionValidator3" ValidationGroup="EmployeeProfile"
                                                        ControlToValidate="txtRefereeEmail" runat="server" CssClass="validationErrorControl"
                                                        Display="Dynamic" ErrorMessage="<br />Invalid email address format." ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div17" runat="server">
                                                <label for="<%=txtRefereeContact.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Referee Contact" ID="Label22" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtRefereeContact" runat="server" MaxLength="255" CssClass="inputBox_large"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div12" runat="server" style="width: 550px;">
                                                <label for="<%=txtRemarks.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Remarks" ID="Label17" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtRemarks" runat="server" Width="350px" Height="85px" MaxLength="500"
                                                        TextMode="MultiLine" Columns="10" Rows="10" CssClass="inputBox_medium"></asp:TextBox>
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:GridView ID="dgExperienceBrowse" runat="server" AutoGenerateColumns="False"
                                                ShowFooter="true" DataKeyNames="EmployeeJobExperienceKey" AllowPaging="True" CellPadding="3"
                                                Width="100%" OnRowDeleting="dgExperienceBrowse_RowDeleting" OnSelectedIndexChanged="dgExperienceBrowse_SelectedIndexChanged"
                                                OnRowDataBound="dgExperienceBrowse_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="EmployeeJobExperienceKey" HeaderText="EmployeeJobExperienceKey"
                                                        InsertVisible="False" Visible="false" SortExpression="EmployeeJobExperienceKey" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" InsertVisible="False"
                                                        Visible="false" SortExpression="UserAccountKey" />
                                                    <asp:BoundField DataField="PreviousEmployer" HeaderText="School" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="PreviousEmployer" />
                                                    <asp:BoundField DataField="StartDate" HeaderText="Start Date" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        DataFormatString="{0:dd/MM/yyyy}" ReadOnly="True" SortExpression="StartDate" />
                                                    <asp:BoundField DataField="EndDate" HeaderText="End Date" InsertVisible="False" DataFormatString="{0:dd/MM/yyyy}" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="EndDate" />
                                                    <asp:BoundField DataField="Position" HeaderText="Position" SortExpression="Position" ItemStyle-HorizontalAlign="Center" />
                                                    <asp:BoundField DataField="BasicSalary" HeaderText="Basic Salary" SortExpression="BasicSalary" ItemStyle-HorizontalAlign="Center"
                                                        DataFormatString="{0:N2}" />
                                                    <asp:TemplateField HeaderText="Status" SortExpression="Staus" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblStatus" runat="server" Visible="false" Text='<%# Bind("Status")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                                Text="Edit"></asp:LinkButton>
                                                            <asp:LinkButton ID="lnkbtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <EmptyDataTemplate>
                                                    Please add new Employee Job Experiences.
                                                </EmptyDataTemplate>
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <PagerStyle ForeColor="#ffffff" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle Font-Size="Small" BackColor="#507CD1" Font-Names="Time News Roman" Font-Bold="True"
                                                    ForeColor="White" />
                                            </asp:GridView>
                                            <asp:ObjectDataSource ID="odsJobExperience" runat="server" DataObjectTypeName="SIS.ENT.EmployeeJobExperiencesTable"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.EmployeeJobExperiencesTableManager" UpdateMethod="Save" InsertMethod="Save">
                                            </asp:ObjectDataSource>
                                            
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpInfo4" runat="server" HeaderText="Qualtification" CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblHeaderQualification" CssClass="menuHeader" runat="server" Text="Qualtification"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td valign="top">
                                            <div class="row_curved" id="div19" runat="server">
                                                <label for="<%=txtQualification2.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Qualification" ID="lblQualification" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtQualification2" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div20" runat="server">
                                                <label for="<%=txtOrganization.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Organizaton" ID="lblOrganization" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtOrganization" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div21" runat="server">
                                                <label for="<%=txtYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Year" ID="lblYear" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_small" ID="txtYear" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div44" runat="server">
                                                <span class="indicator">
                                                    <asp:Button ID="btnQualifyAdd" runat="server" Text="Add New" OnClick="btnQualifyAdd_Click" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td valign="top">
                                            <div class="row_curved" id="div22" runat="server">
                                                <label for="<%=txtGradelevel.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Grade Level" ID="Label28" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_medium" ID="txtGradelevel" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div23" runat="server">
                                                <label for="<%=txtQualifyOthers.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Others" ID="lblOthers" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputBox_large" TextMode="MultiLine" Rows="5" ID="txtQualifyOthers"
                                                            MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:GridView ID="dgvEmployeeQualtification" runat="server" AutoGenerateColumns="False"
                                                ShowFooter="true" DataKeyNames="EmployeeQualtificationKey" AllowPaging="True"
                                                CellPadding="3" Width="100%" OnRowDeleting="dgvEmployeeQualtification_RowDeleting"
                                                OnSelectedIndexChanged="dgvEmployeeQualtification_SelectedIndexChanged" OnRowDataBound="dgvEmployeeQualtification_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="EmployeeQualtificationKey" HeaderText="EmployeeJobExperienceKey"
                                                        InsertVisible="False" Visible="false" SortExpression="EmployeeQualtificationKey" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" InsertVisible="False"
                                                        Visible="false" SortExpression="UserAccountKey" />
                                                    <asp:BoundField DataField="QualificationName" HeaderText="Qualification" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="QualificationName" />
                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="StartDate" />
                                                    <asp:BoundField DataField="Year" HeaderText="Year" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center"
                                                        SortExpression="Year" />
                                                    <asp:BoundField DataField="GradeLevel" HeaderText="Grade Level" SortExpression="GradeLevel" ItemStyle-HorizontalAlign="Center" />
                                                    <asp:BoundField DataField="Others" HeaderText="Others" SortExpression="Others" />
                                                    <asp:TemplateField HeaderText="Status" SortExpression="Staus" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblStatus" runat="server" Visible="false" Text='<%# Bind("Status")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                                Text="Edit"></asp:LinkButton>
                                                            <asp:LinkButton ID="lnkbtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <EmptyDataTemplate>
                                                    Please add new Employee Qualification.
                                                </EmptyDataTemplate>
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <PagerStyle ForeColor="#ffffff" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle Font-Size="Small" BackColor="#507CD1" Font-Names="Time News Roman" Font-Bold="True"
                                                    ForeColor="White" />
                                            </asp:GridView>
                                            <asp:ObjectDataSource ID="odsdgvEmployeeQualtification" runat="server" DataObjectTypeName="SIS.ENT.EmployeeQualtificationTable"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.EmployeeQualtificationTableManager" UpdateMethod="Save" InsertMethod="Save">
                                            </asp:ObjectDataSource>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpInfo5" runat="server" HeaderText="Ohther Skills" CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblOtherSkills" CssClass="menuHeader" runat="server" Text="Other Skills"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <div class="row_curved" id="div31" runat="server">
                                                <label for="<%=txtSkill.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Skill" ID="Label35" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtSkill" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div32" runat="server">
                                                <label for="<%=txtSkillOrganization.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Organizaton" ID="Label36" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox Width="270px" ID="txtSkillOrganization" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div33" runat="server">
                                                <label for="<%=txtNoOfYear.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="No Of Year" ID="Label37" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_small" ID="txtNoOfYear" MaxLength="50" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div45" runat="server">
                                                <span class="indicator">
                                                    <asp:Button ID="btnSkillAdd" runat="server" Text="Add New" OnClick="btnSkillAdd_Click" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="div35" runat="server">
                                                <label for="<%=txtSkillLevel.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Skill Level" ID="Label39" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_medium" ID="txtSkillLevel" MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div34" runat="server">
                                                <label for="<%=txtSkillOthers.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Others" ID="Label38" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputBox_large" TextMode="MultiLine" Rows="5" ID="txtSkillOthers"
                                                            MaxLength="255" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:GridView ID="gvEmployeeOtherSkills" runat="server" AutoGenerateColumns="False"
                                                ShowFooter="true" DataKeyNames="EmployeeOtherSkillsKey" AllowPaging="True" CellPadding="3"
                                                Width="100%" OnRowDeleting="gvEmployeeOtherSkills_RowDeleting" OnSelectedIndexChanged="gvEmployeeOtherSkills_SelectedIndexChanged"
                                                OnRowDataBound="gvEmployeeOtherSkills_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="EmployeeOtherSkillsKey" HeaderText="EmployeeJobExperienceKey"
                                                        InsertVisible="False" Visible="false" SortExpression="EmployeeOtherSkillsKey" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" InsertVisible="False"
                                                        Visible="false" SortExpression="UserAccountKey" />
                                                    <asp:BoundField DataField="SkillName" HeaderText="Skill" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center"
                                                        SortExpression="QualificationName" />
                                                    <asp:BoundField DataField="Organization" HeaderText="Organization" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="StartDate" />
                                                    <asp:BoundField DataField="NoOfYear" HeaderText="No Of Year" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="Year" />
                                                    <asp:BoundField DataField="SkillLevel" HeaderText="Skill Level" SortExpression="SkillLevel" ItemStyle-HorizontalAlign="Center" />
                                                    <asp:BoundField DataField="Others" HeaderText="Others" SortExpression="Others" />
                                                    <asp:TemplateField HeaderText="Status" SortExpression="Staus" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblStatus" runat="server" Visible="false" Text='<%# Bind("Status")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                                Text="Edit"></asp:LinkButton>
                                                            <asp:LinkButton ID="lnkbtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <EmptyDataTemplate>
                                                    Please add new Employee Qualification.
                                                </EmptyDataTemplate>
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <PagerStyle ForeColor="#ffffff" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle Font-Size="Small" BackColor="#507CD1" Font-Names="Time News Roman" Font-Bold="True"
                                                    ForeColor="White" />
                                            </asp:GridView>
                                            <asp:ObjectDataSource ID="odsEmployeeOtherSkills" runat="server" DataObjectTypeName="SIS.ENT.EmployeeOtherSkillsTable"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.EmployeeOtherSkillsTableManager" UpdateMethod="Save" InsertMethod="Save">
                                            </asp:ObjectDataSource>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpDesignation" runat="server" HeaderText="Designation"
                            CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblDesignation" CssClass="menuHeader" runat="server" Text="Designation"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <div class="row_curved" id="div36" runat="server">
                                                <label for="<%=ddlJobDesignation.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Job Designation Type" ID="Label40" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ID="ddlJobDesignation" runat="server">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div37" runat="server">
                                                <label for="<%=txtDesignationDesc.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Job Desc" ID="Label41" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox ID="txtDesignationDesc" runat="server" CssClass="inputBox_large"></asp:TextBox>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div42" runat="server">
                                                <label for="<%=chkActive.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Active" ID="Label46" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:CheckBox ID="chkDesignation" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div46" runat="server">
                                                <span class="indicator">
                                                    <asp:Button ID="btnDesignationAdd" runat="server" Text="Add New" OnClick="btnDesignationAdd_Click" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="div38" runat="server">
                                                <label for="<%=txtDesgnationStartDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Start Date" ID="Label42" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtDesgnationStartDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ImageButton1" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="CalendarExtender2" runat="server" TargetControlID="txtDesgnationStartDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ImageButton1" PopupPosition="TopLeft" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div39" runat="server">
                                                <label for="<%=txtDesgnationEndDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="End Date" ID="Label43" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtDesgnationEndDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ImageButton2" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="CalendarExtender3" runat="server" TargetControlID="txtDesgnationEndDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ImageButton2" PopupPosition="TopLeft" />
                                                   
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div id="DivCustomValidator" class="row_curved"  runat="server" style="text-align:center;">
                                             <asp:CustomValidator ID="CustomValidator1" ValidationGroup="vgDesignation" OnServerValidate="DesignationEndDate_ServerSideValidation"
                                                        ErrorMessage="Designation Date Range do not valid." ControlToValidate="txtDesgnationEndDate"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator>
                                            </div>
                                            <div class="row_curved" id="div41" runat="server">
                                                <label for="<%=txtDesignationRemark.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Remarks" ID="Label45" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputBox_large" Rows="5" ID="txtDesignationRemark" MaxLength="255"
                                                            runat="server" TextMode="MultiLine" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:GridView ID="gvDesignation" runat="server" AutoGenerateColumns="False" ShowFooter="true"
                                                DataKeyNames="EmployeeDesignationKey" AllowPaging="True" CellPadding="3" Width="100%"
                                                OnRowDeleting="gvDesignation_RowDeleting" OnSelectedIndexChanged="gvDesignation_SelectedIndexChanged"
                                                OnRowDataBound="gvDesignation_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="EmployeeDesignationKey" HeaderText="EmployeeDesignationKey"
                                                        InsertVisible="False" Visible="false" SortExpression="EmployeeDesignationKey" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" InsertVisible="False"
                                                        Visible="false" SortExpression="UserAccountKey" />
                                                    <asp:BoundField DataField="JobDesignationCode" HeaderText="JobDesignationCode" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        Visible="false" SortExpression="JobDesignationCode" />
                                                    <asp:BoundField DataField="StartDate" HeaderText="Start Date" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="Start Date" DataFormatString="{0:dd/MM/yyyy}" />
                                                    <asp:BoundField DataField="EndDate" HeaderText="End Date" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center"
                                                        SortExpression="End Date" DataFormatString="{0:dd/MM/yyyy}" />
                                                    <asp:CheckBoxField DataField="Active" HeaderText="Active" SortExpression="Active" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="true" />
                                                    <asp:BoundField DataField="Remarks" HeaderText="Remarks" SortExpression="Remarks" />
                                                    <asp:TemplateField HeaderText="Status" SortExpression="Staus" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblStatus" runat="server" Visible="false" Text='<%# Bind("Status")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                                Text="Edit"></asp:LinkButton>
                                                            <asp:LinkButton ID="lnkbtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <EmptyDataTemplate>
                                                    Please add new Employee Qualification.
                                                </EmptyDataTemplate>
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <PagerStyle ForeColor="#ffffff" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle Font-Size="Small" BackColor="#507CD1" Font-Names="Time News Roman" Font-Bold="True"
                                                    ForeColor="White" />
                                            </asp:GridView>
                                            <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" DataObjectTypeName="SIS.ENT.EmployeeOtherSkillsTable"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.EmployeeOtherSkillsTableManager" UpdateMethod="Save" InsertMethod="Save">
                                            </asp:ObjectDataSource>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                        <AjaxToolKit:TabPanel ID="tbpSalary" runat="server" HeaderText="Salary" CssClass="menuHeader">
                            <HeaderTemplate>
                                <asp:Label ID="lblSalary" CssClass="menuHeader" runat="server" Text="Salary"></asp:Label>
                            </HeaderTemplate>
                            <ContentTemplate>
                                <table cellpadding="3" cellspacing="3" width="100%">
                                    <tr>
                                        <td>
                                            <div class="row_curved" id="div24" runat="server">
                                                <label for="<%=ddlpaymentType.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Payment Type" ID="lblPaymentType" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ID="ddlpaymentType" runat="server">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div29" runat="server">
                                                <label for="<%=ddlCurrency.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Currency" ID="Label29" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:DropDownList ID="ddlCurrency" runat="server">
                                                        </asp:DropDownList>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div25" runat="server">
                                                <label for="<%=txtAmount.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Amount" ID="Label30" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_small" ID="txtAmount" MaxLength="255" runat="server" />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" ValidationGroup="vgSalary"
                                                            ControlToValidate="txtAmount" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div26" runat="server">
                                                <label for="<%=txtAllotment1.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Allotment 1" ID="Label31" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_small" ID="txtAllotment1" xtMaxLength="50" runat="server" />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator4" ValidationGroup="vgSalary"
                                                            ControlToValidate="txtAllotment1" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div27" runat="server">
                                                <label for="<%=txtAllotment2.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Allotment 2" ID="Label32" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputox_medium" ID="txtAllotment2" MaxLength="50" runat="server" />
                                                        <asp:RegularExpressionValidator ID="RegularExpressionValidator5" ValidationGroup="vgSalary"
                                                            ControlToValidate="txtAllotment2" runat="server" CssClass="validationErrorControl"
                                                            Display="Dynamic" ErrorMessage="<br />Invalid Input Data." ValidationExpression="^[1-9]\d*(\.\d+)?$"></asp:RegularExpressionValidator>
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div47" runat="server">
                                                <span class="indicator">
                                                    <asp:Button ID="btnSalaryAdd" runat="server" Text="Add New" OnClick="btnSalaryAdd_Click" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                        <td>
                                            <div class="row_curved" id="div40" runat="server">
                                                <label for="<%=txtDesgnationStartDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Start Date" ID="Label44" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSalaryStartDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ImageButton3" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="CalendarExtender4" runat="server" TargetControlID="txtSalaryStartDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ImageButton3" PopupPosition="TopLeft" />
                                                </span>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div43" runat="server">
                                                <label for="<%=txtDesgnationEndDate.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="End Date" ID="Label47" Width="120px" /></label>
                                                <span class="indicator">
                                                    <asp:TextBox ID="txtSalaryEndDate" runat="server" MaxLength="12" CssClass="inputBox_medium"></asp:TextBox>
                                                    <asp:ImageButton runat="Server" ID="ImageButton4" ImageUrl="~/images/Calendar.gif"
                                                        AlternateText="Click to show calendar" ToolTip="Click to select calendar" CausesValidation="false" />
                                                    <AjaxToolKit:CalendarExtender ID="CalendarExtender5" runat="server" TargetControlID="txtSalaryEndDate"
                                                        Format="dd/MM/yyyy" PopupButtonID="ImageButton4" PopupPosition="TopLeft" />
                                                    
                                                </span>
                                                <div class="clear"  >                                               
                                                </div>
                                            </div>

                                            <div id="DivCustomValidator2" class="row_curved" runat="server" style="text-align:center;">                                                                                              
                                                <asp:CustomValidator ID="CustomValidator2" ValidationGroup="vgSalary" OnServerValidate="SalaryEndDate_ServerSideValidation"
                                                        ErrorMessage="Salary Date Range do not Valid." ControlToValidate="txtSalaryEndDate"
                                                        runat="server" CssClass="validationErrorControl" Display="Dynamic"></asp:CustomValidator> 
                                            </div>

                                            <div class="row_curved" id="div28" runat="server">
                                                <label for="<%=txtSalaryRemark.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Remarks" ID="Label33" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:TextBox CssClass="inputBox_large" Rows="5" ID="txtSalaryRemark" MaxLength="255"
                                                            runat="server" TextMode="MultiLine" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                            <div class="row_curved" id="div30" runat="server">
                                                <label for="<%=chkActive.ClientID%>" class="mand_red">
                                                    <asp:Label runat="server" Text="Active" ID="Label34" Width="140px" /></label>
                                                <div class="field">
                                                    <span class="indicator">
                                                        <asp:CheckBox ID="chkActive" runat="server" />
                                                    </span>
                                                </div>
                                                <div class="clear">
                                                </div>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td colspan="2">
                                            <asp:GridView ID="gvSalary" runat="server" AutoGenerateColumns="False" ShowFooter="true"
                                                DataKeyNames="EmployeeSalaryKey" AllowPaging="True" CellPadding="3" Width="100%"
                                                OnRowDeleting="gvSalary_RowDeleting" OnSelectedIndexChanged="gvSalary_SelectedIndexChanged"
                                                OnRowDataBound="gvSalary_RowDataBound">
                                                <Columns>
                                                    <asp:BoundField DataField="EmployeeSalaryKey" HeaderText="EmployeeSalaryKey" InsertVisible="False"
                                                        Visible="false" SortExpression="EmployeeSalaryKey" />
                                                    <asp:BoundField DataField="UserAccountKey" HeaderText="UserAccountKey" InsertVisible="False"
                                                        Visible="false" SortExpression="UserAccountKey" />
                                                    <asp:BoundField DataField="PaymentTypeCode" HeaderText="PaymentTypeCode" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        Visible="false" SortExpression="PaymentTypeCode" />
                                                    <asp:BoundField DataField="CurrencyCode" HeaderText="CurrencyCode" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        Visible="false" SortExpression="CurrencyCode" />
                                                    <asp:BoundField DataField="StartDate" HeaderText="Start Date" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="Start Date" DataFormatString="{0:dd/MM/yyyy}" />
                                                    <asp:BoundField DataField="EndDate" HeaderText="End Date" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center"
                                                        SortExpression="End Date" DataFormatString="{0:dd/MM/yyyy}" />
                                                    <asp:BoundField DataField="Amount" HeaderText="Salary" InsertVisible="False" ReadOnly="True" ItemStyle-HorizontalAlign="Center"
                                                        SortExpression="Amount" DataFormatString="{0:N2}" />
                                                    <asp:BoundField DataField="Allotment1" HeaderText="Allotment 1" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="End Date" DataFormatString="{0:N2}" />
                                                    <asp:BoundField DataField="Allotment2" HeaderText="Allotment 2" InsertVisible="False" ItemStyle-HorizontalAlign="Center"
                                                        ReadOnly="True" SortExpression="Allotment2" DataFormatString="{0:N2}" />
                                                    <asp:CheckBoxField DataField="Active" HeaderText="Active" SortExpression="Active"
                                                        ReadOnly="true" />
                                                    <asp:BoundField DataField="Remarks" HeaderText="Remarks" SortExpression="Remarks" />
                                                    <asp:TemplateField HeaderText="Status" SortExpression="Staus" Visible="false">
                                                        <ItemTemplate>
                                                            <asp:Label ID="lblStatus" runat="server" Visible="false" Text='<%# Bind("Status")%>'></asp:Label>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField>
                                                        <ItemTemplate>
                                                            <asp:LinkButton ID="lnkbtnEdit" runat="server" CausesValidation="False" CommandName="Select"
                                                                Text="Edit"></asp:LinkButton>
                                                            <asp:LinkButton ID="lnkbtnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                                                                Text="Delete"></asp:LinkButton>
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                </Columns>
                                                <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                <EmptyDataTemplate>
                                                    Please add new Employee Qualification.
                                                </EmptyDataTemplate>
                                                <RowStyle BackColor="#FFF7E7" ForeColor="#8C4510" />
                                                <FooterStyle BackColor="#F7DFB5" ForeColor="#8C4510" />
                                                <PagerStyle ForeColor="#ffffff" />
                                                <SelectedRowStyle BackColor="#738A9C" Font-Bold="True" ForeColor="White" />
                                                <HeaderStyle Font-Size="Small" BackColor="#507CD1" Font-Names="Time News Roman" Font-Bold="True"  
                                                    ForeColor="White" />
                                            </asp:GridView>
                                            <asp:ObjectDataSource ID="ObjectDataSource3" runat="server" DataObjectTypeName="SIS.ENT.EmployeeOtherSkillsTable"
                                                DeleteMethod="Delete" OldValuesParameterFormatString="original_{0}" SelectMethod="GetList"
                                                TypeName="SIS.BLL.EmployeeOtherSkillsTableManager" UpdateMethod="Save" InsertMethod="Save">
                                            </asp:ObjectDataSource>
                                        </td>
                                    </tr>
                                </table>
                            </ContentTemplate>
                        </AjaxToolKit:TabPanel>
                    </AjaxToolKit:TabContainer>
                    <div class="row_curved" style="background-color: #efefef;width: 550px;" id="divButton" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field" style="width: 900px;">
                            <span class="indicator">
                                <asp:Button ID="btnSubmit" CssClass="button_normal_submit" Text="Save" ValidationGroup="EmployeeProfile"
                                    OnClientClick="SubmitOnClientClick(this, 'EmployeeProfile');" runat="server" OnClick="btnSubmit_Click" /></span>
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnNew" Text="New" OnClick="btnAddNewEmployee_Click"
                                CssClass="button_normal_submit" />
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnUpdatePhoto" Visible="false" Text="Update Photo"
                                CssClass="button_normal_submit" OnClick="btnUpdatePhoto_Click" />
                            &nbsp;&nbsp;<asp:Button runat="server" ID="btnBack" Text="Back to List" OnClick="btnBack_Click"
                                CssClass="button_normal_submit" />
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div class="row_curved" id="divMessage" runat="server">
                        <label>
                            &nbsp;</label>
                        <div class="field">
                            <span class="indicator">
                                <asp:Label ID="lblMessage" runat="server"></asp:Label>
                            </span>
                        </div>
                        <div class="clear">
                        </div>
                    </div>
                    <div>
                        <asp:Label Visible="false" runat="server" Text="-1" ID="lblJobExperienceKey" />
                        <asp:Label Visible="false" runat="server" Text="-1" ID="lblAccountKey" />
                    </div>
                </fieldset>
            </div>
        </div>
    </div>

    <script type="text/javascript">
                //<![CDATA[
        SetSumitNormalButtonAttribute(document.getElementById('<%=btnSubmit.ClientID%>'));
                //]]>
    </script>

</asp:Content>

